<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue双向绑定原理解析与实现</title>
</head>

<body>
  <div id="App">
    <span>学习人：{{name}}</span>
    <input type="text" v-model="name">
    <span>更多：{{more.like}}</span>
    <input type="text" v-model="more.like">
  </div>

  <script src="./vue.js"></script>
  <script>
    let vue = new Vue({
      el: '#App',
      data: {
        name: 'spa',
        more: {
          like: '嘻嘻'
        }
      }
    })
  </script>
</body>

</html>